package org.example.registry;

import org.example.spi.SpiLoader;

public class RegistryFactory {
    static {
        SpiLoader.load(Registry.class);
    }
    private static final Registry DEFAULT_REGISTRY = new EtcdRegistry();
    public static Registry getInstance(String key){
        return SpiLoader.getInstance(Registry.class, key);
    }
}
